package com.android.nodejs.livejs.models;

import java.util.List;

public class MyMessage {
    private int idGroup;
    private int idSender;
    private String nameSender;
    private String avatarSender;
    private List<String> time;
    private List<String> message;

    public int getIdGroup() {
        return idGroup;
    }

    public void setIdGroup(int idGroup) {
        this.idGroup = idGroup;
    }

    public int getIdSender() {
        return idSender;
    }

    public void setIdSender(int idSender) {
        this.idSender = idSender;
    }

    public String getNameSender() {
        return nameSender;
    }

    public void setNameSender(String nameSender) {
        this.nameSender = nameSender;
    }
    
    public String getAvatarSender() {
        return avatarSender;
    }

    public void setAvatarSender(String avatarSender) {
        this.avatarSender = avatarSender;
    }

    public List<String> getTime() {
        return time;
    }

    public void setTime(List<String> time) {
        this.time = time;
    }

    public List<String> getMessage() {
        return message;
    }

    public void setMessage(List<String> message) {
        this.message = message;
    }

    @Override
    public boolean equals(Object obj) {
        if(obj instanceof MyMessage){
            if(((MyMessage)obj).idGroup==this.idGroup)
                return true;
        }
        return false;
    }
    

}
